package com.hong.taotaomall;

import java.io.File;

public class Base64 {
    public static void main(String[] args){
        String name = "兔先森春秋季复古撞色拼布设计纯棉衬衫男潮百搭休闲修身长袖衬衣";
//        File file = new File("static/O1CN01N3LspD1wkyegfs71d_!!0-saturn_solar.jpg_300x300q90.jpg_.webp");
//        String encodeToString = java.util.Base64.getEncoder().encodeToString(file.getBytes());
//        System.out.println("编码"+encodeToString);


        byte[] decodedBytes = java.util.Base64.getDecoder().decode("TXjiYE");
        String decodedString = new String(decodedBytes);
        System.out.println(decodedString);
    }

}